import request from '../utils/request.js';

export function getArticleList(pageNum, pageSize, params) {
  return request({
      url: '/article/list/' + pageNum + '/' + pageSize + '',
      method: 'get',
      params
  });
}

export function getArticleListByType(typeId) {
  return request({
    url: '/article/listByType/' + typeId,
    method: 'get',
  })
}

export function getArticleContent(id) {
  return request({
    url: '/article/content/'+id,
    method: 'get',
  })
}

export function getAllTypeList() {
  return request({
    url: '/article/type/listAll',
    method: 'get',
  })
}
